package
{
	public class Player
	{
		public var m_cash:int;
		public var totalCashEarned:int;
		
		public function Player()
		{
		}
		
		public function set cash(amount:int):void{
			var delta:int = amount - m_cash;
			if(delta > 0){
				totalCashEarned += delta;
			}
			
			m_cash = amount;
		}
		
		public function get cash():int{
			return m_cash;
		}
		
	}
}